package edu.zut.cs.software.estateagent.admin.web.spring.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import edu.zut.cs.software.base.web.spring.controller.GenericController;
import edu.zut.cs.software.estateagent.admin.domain.Saleman;
import edu.zut.cs.software.estateagent.admin.service.SalemanManager;

@Controller
@RequestMapping("/saleman")
public class SalemanController extends GenericController<Saleman, Long, SalemanManager> {

	SalemanManager salemanManager;

    @RequestMapping("/index")
    public String index() {
        return "saleman/index";
    }

    @Autowired
    public void setSalemanManager(SalemanManager salemanManager) {
        this.salemanManager = salemanManager;
        this.manager = this.salemanManager;
    }
}
